import { FormSchema } from '@/components/Table';

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: '',
    component: 'Input',
    show: false,
  },
  {
    field: 'setId',
    label: '',
    component: 'Input',
    show: false,
  },
  {
    label: '数据集Key',
    field: 'setCode',
    component: 'Input',
    required: true,
    colProps: {
      span: 12,
    },
  },
  {
    label: '数据集名称',
    field: 'setName',
    component: 'Input',
    required: true,
    colProps: {
      span: 12,
    },
  },
  {
    label: '说明',
    field: 'setDesc',
    component: 'InputTextArea',
  },
  {
    field: 'dynSentence',
    label: '脚本',
    helpMessage:
      '内置参数 前端请求的参数-params jdbc查询工具-namedParameterJdbcTemplate 前端请求对象-request',
    component: 'Input',
    slot: 'dynSentence',
    required: true,
    colProps: {
      span: 12,
    },
  },
  {
    field: 'params',
    label: '参数',
    component: 'Input',
    slot: 'params',
  },
];
